<style type='text/css'>
	.goods-list a {
		position: relative; 
	}
	.goods-list span  {
	float:right;margin-right:20px;
	 
	}
</style>

{php $totals = $this->model->getGoodsTotals()}
{ifp 'goods'}
<div class='menu-header'>商品管理</div>
<ul class='goods-list'>
    <li {if $_GPC['goodsfrom'] == 'sale'} class="active" {/if}><a href="{php echo merchUrl('goods',array('goodsfrom'=>'sale'))}">出售中<span>{$totals['sale']}</span></a></li>
    <li {if $_GPC['goodsfrom'] == 'check'} class="active" {/if}><a href="{php echo merchUrl('goods',array('goodsfrom'=>'check'))}">审核中<span  class='text-danger'>{$totals['check']}</span></a></li>
    <li {if $_GPC['goodsfrom'] == 'out'} class="active" {/if}><a href="{php echo merchUrl('goods',array('goodsfrom'=>'out'))}">已售罄<span  class='text-danger'>{$totals['out']}</span></a></li>
    <li {if $_GPC['goodsfrom'] == 'stock'} class="active" {/if}><a href="{php echo merchUrl('goods',array('goodsfrom'=>'stock'))}">仓库中<span>{$totals['stock']}</span></a></li>
    <li {if $_GPC['goodsfrom'] == 'cycle'} class="active" {/if}><a href="{php echo merchUrl('goods',array('goodsfrom'=>'cycle'))}">回收站<span  class='text-default'>{$totals['cycle']}</span></a></li>
    <li {if $_W['action'] == 'goods.category'} class="active" {/if}><a href="{php echo merchUrl('goods/category')}">商品分类</a></li>
</ul>
{/if}

{if mcom('virtual')}
{ifp 'goods.virtual.temp|goods.virtual.category|goods.virtual.data'}
<div class='menu-header'>虚拟卡密</div>
<ul>
    {ifp 'goods.virtual.temp'}<li {if $_W['action'] == 'goods.virtual.temp' ||$_W['action'] == 'goods.virtual.data'} class="active" {/if}><a href="{php echo merchUrl('goods/virtual/temp')}">虚拟卡密</a></li>{/if}
    {ifp 'goods.virtual.category'}<li {if $_W['action'] == 'goods.virtual.category'} class="active" {/if}><a href="{php echo merchUrl('goods/virtual/category')}">卡密分类</a></li>	{/if}
</ul>
{/if}
{/if}

  